package subject_set.lanqiao.moli;

/**
 * @author haomin
 * @date 2022/11/06 08:39
 **/
public class Num3 {
    public static void main(String[] args) {
        double n = 1;
        double sum = 0;
        while(sum <= 12.0){
            sum = sum + 1/n;
            n += 1.0;
            System.out.println(sum + " " + n);
        }
        System.out.println(n);
    }
}